#!/bin/bash
##检查用户权限的脚本
Check_User(){
    if [[ "$1" -eq 'root' ]];then
        if [[ "$USER" == "$1" ]];then
            red_z_green_z "用户权限" "[SUCCESS]"
        else
            red_zt_bg "用户权限" "[FAILD]"
            exit 1
        fi
    else
        red_z_green_z "当前用户:" "[ $USER ]"
    fi
}